package com.lgj.web.sys.mapper;

import com.lgj.web.sys.model.SysUserRoleRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleRelationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRoleRelation record);

    int insertSelective(SysUserRoleRelation record);

    SysUserRoleRelation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRoleRelation record);

    int updateByPrimaryKey(SysUserRoleRelation record);

    List<SysUserRoleRelation> selectByRoleId(Long roleId);

    List<SysUserRoleRelation> selectByRoleIds(@Param("roleIds") List<Long> roleIds);

    int deleteByUserId(long userId);
}